package com.wn.ziroombackend.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wn.ziroombackend.entity.User;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
@TableName("t_order_clr")
public class OrderIdClrVo {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("order_id_clr")
    private String orderIdClr;

    @TableField("cus_id")
    private User user;

    @TableField("clr_id")
    private Integer clrId;

    @TableField("areas_id")
    private String areasId;

    private String areasName;

    @TableField("streets_id")
    private String streetsId;

    private String streetsName;

    @TableField("address")
    private String address;

    @TableField("starttime")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss", timezone = "GMT+8")
    private Date starttime;

    @TableField("endtime")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss", timezone = "GMT+8")
    private Date endtime;

    @TableField("duration")
    private String duration;

    @TableField("prices")
    private Double prices;

    @TableField("createtime")
    private Date createtime;

    @TableField("updatetime")
    private Date updatetime;

    private String state;

    @Override
    public String toString() {
        return "OrderIdClrVo{" +
                "id=" + id +
                ", orderIdClr='" + orderIdClr + '\'' +
                ", user=" + user +
                ", clrId=" + clrId +
                ", areasId='" + areasId + '\'' +
                ", areasName='" + areasName + '\'' +
                ", streetsId='" + streetsId + '\'' +
                ", streetsName='" + streetsName + '\'' +
                ", address='" + address + '\'' +
                ", starttime=" + starttime +
                ", endtime=" + endtime +
                ", duration='" + duration + '\'' +
                ", prices=" + prices +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                ", state='" + state + '\'' +
                '}';
    }
}
